// Rueda 2008 WP

// Load original dataset
clear
use "R2008 WP Rep Data.dta"

// REPLICATION
summarize
display c(k)
mdesc
tabmiss
codebook country
codebook year

tsset count year

// Figure 7/Appendix 2

*analysis of the effects of partisanship on government employment
xi:xtpcse govem govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 i.count, hetonly
codebook year if e(sample)
codebook country if e(sample)
mdesc govem govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 _Icount_2 _Icount_3 _Icount_4 _Icount_5 _Icount_6 _Icount_7 _Icount_8 _Icount_9 _Icount_10 _Icount_11 _Icount_12 _Icount_13 _Icount_14 _Icount_15 _Icount_16

*analysis of the effects of partisanship on welfare generosity
xi:xtpcse generos govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 i.count, hetonly
codebook year if e(sample)
codebook country if e(sample)
mdesc generos govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 _Icount_2 _Icount_3 _Icount_4 _Icount_5 _Icount_6 _Icount_7 _Icount_8 _Icount_9 _Icount_10 _Icount_11 _Icount_12 _Icount_13 _Icount_14 _Icount_15 _Icount_16

*analysis of the effects of partisanship on minimum wage
xi:xtpcse min govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 i.count, hetonly
codebook year if e(sample)
codebook country if e(sample)
mdesc min govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 _Icount_2 _Icount_3 _Icount_4 _Icount_5 _Icount_6 _Icount_7 _Icount_8 _Icount_9 _Icount_10 _Icount_11 _Icount_12 _Icount_13 _Icount_14 _Icount_15 _Icount_16

*analysis of the effects of government employment on inequality
xi:xtpcse ia5010 govem hkcorp govemxcor min generos unemp ldc femla priv deca70 deca80 deca85 deca90 i.count, hetonly
codebook year if e(sample)
codebook country if e(sample)
mdesc ia5010 govem hkcorp govemxcor min generos unemp ldc femla priv deca70 deca80 deca85 deca90 _Icount_2 _Icount_3 _Icount_4 _Icount_5 _Icount_6 _Icount_7 _Icount_8 _Icount_9 _Icount_10 _Icount_11 _Icount_12 _Icount_13 _Icount_14 _Icount_15 _Icount_16

*analysis of the effects of welfare generosity on inequality
xi:xtpcse ia5010 generos hkcorp genxcor min govem unemp ldc femla priv deca70 deca80 deca85 deca90 i.count, hetonly
codebook year if e(sample)
codebook country if e(sample)
mdesc ia5010 generos hkcorp genxcor min govem unemp ldc femla priv deca70 deca80 deca85 deca90 _Icount_2 _Icount_3 _Icount_4 _Icount_5 _Icount_6 _Icount_7 _Icount_8 _Icount_9 _Icount_10 _Icount_11 _Icount_12 _Icount_13 _Icount_14 _Icount_15 _Icount_16

*analysis of the effects of minimum wage on inequality
xi:xtpcse ia5010 min hkcorp minxcor govem generos unemp ldc femla priv deca70 deca80 deca85 deca90 i.count, hetonly
codebook year if e(sample)
codebook country if e(sample)
mdesc ia5010 min hkcorp minxcor govem generos unemp ldc femla priv deca70 deca80 deca85 deca90 _Icount_2 _Icount_3 _Icount_4 _Icount_5 _Icount_6 _Icount_7 _Icount_8 _Icount_9 _Icount_10 _Icount_11 _Icount_12 _Icount_13 _Icount_14 _Icount_15 _Icount_16

// IMPUTATION
clear
use "R2008 WP Imp Data.dta"
summarize

mi import flong, m(imp) id(count year) imp(deca70-_Icount_2)

mi tsset count year

// Figure 7/Appendix 2

*analysis of the effects of partisanship on government employment
xi: mi estimate, cmdok post: xtpcse govem govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 i.count, hetonly

*analysis of the effects of partisanship on welfare generosity
xi: mi estimate, cmdok post: xtpcse generos govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 i.count, hetonly

*analysis of the effects of partisanship on minimum wage
xi: mi estimate, cmdok post: xtpcse min govpart hkcorp govpxcor open finop dccggx unemp gdpgr deca70 deca80 deca85 deca90 i.count, hetonly

*analysis of the effects of government employment on inequality
xi: mi estimate, cmdok post: xtpcse ia5010 govem hkcorp govemxcor min generos unemp ldc femla priv deca70 deca80 deca85 deca90 i.count, hetonly

*analysis of the effects of welfare generosity on inequality
xi: mi estimate, cmdok post: xtpcse ia5010 generos hkcorp genxcor min govem unemp ldc femla priv deca70 deca80 deca85 deca90 i.count, hetonly

*analysis of the effects of minimum wage on inequality
xi: mi estimate, cmdok post: xtpcse ia5010 min hkcorp minxcor govem generos unemp ldc femla priv deca70 deca80 deca85 deca90 i.count, hetonly
